package com.javaee.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Doctor {
    private int id;
    private String phone;
    private String name;
    private String pwd;
    private int dId;//科室id
    private String dName;//科室名字
    private String job;
    private String note;
    private MultipartFile fileName;//头像文件，用于上传oss
    private String tx;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;
    private double fee;
    private int num;

    public Doctor(int id, String phone, String name, String pwd, int dId, String job, String note, String tx, LocalDateTime createDate, double fee) {
        this.id = id;
        this.phone = phone;
        this.name = name;
        this.pwd = pwd;
        this.dId = dId;
        this.job = job;
        this.note = note;
        this.tx = tx;
        this.createDate = createDate;
        this.fee = fee;
    }

}
